package com.chinaunicom.base.controller;

import org.springframework.web.bind.annotation.*;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/3/29 10:38
 * Description:
 */
@RestController
public class TestController {

    @GetMapping("/test")
    public String test(@RequestHeader("tenantId") String tenantId, @RequestParam("name") String name) {
        return "test , tenantId is" + tenantId + ", name " + name;
    }

    @PostMapping("/test")
    public String post(@RequestHeader("tenantId") String tenantId, @RequestParam("name") String name) {
        return "test , tenantId is" + tenantId + ", name " + name;
    }
}
